package com.lagou.dao;

import com.lagou.domain.PromotionAd;

import java.util.List;

public interface PromotionAdMapper {
    /*
    分页查询广告信息
    */
    public List<PromotionAd> findAllPromotionAdByPage();

    /*新增广告信息*/
    void savePromotionAd(PromotionAd promotionAd);
    /*修改广告信息*/
    void updatePromotionAd(PromotionAd promotionAd);

    /**
     * 根据id查询广告信息
     * */
    PromotionAd findPromotionAdById(int id);

    /*点击按钮，实现状态的动态上下线*/
    void updatePromotionAdStatus(PromotionAd promotionAd);
}
